package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

/**
 * @version : Ver 1.0
 * @IndexItem
 * @主页栏目(index_item)
 */
@TableName("index_item")
public class IndexItem implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * @备注:主键id
     * @字段:id BIGINT(19)
     */
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * @备注:栏目标题
     * @字段:title VARCHAR(20)
     */
    private String title;

    /**
     * 首页显示数量
     */
    private Integer indexNum;


    /**
     * @备注:banner图地址
     * @字段:banner_url TEXT(65535)
     */
    private String bannerUrl;


    /**
     * @备注:栏目编号（和pop_goods等中的goods_type对应）
     * @字段:item_num INT(10)
     */
    private Integer itemNum;


    /**
     * @备注:版式类型
     * @字段:frame_type INT(10)
     */
    private Integer frameType;

    /**
     * @备注:产品线（0 蜜哆哆 1 蜜雅阁 2 品牌馆）
     * @字段:frame_type INT(10)
     */
    private Integer goodsType;

    @TableField(exist = false)
    private List<Goods> goodsList;


    public IndexItem() {
    }

    public IndexItem(
            Long id
    ) {
        this.id = id;
    }


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }


    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return this.title;
    }

    public Integer getIndexNum() {
        return indexNum;
    }

    public void setIndexNum(Integer indexNum) {
        this.indexNum = indexNum;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerUrl() {
        return this.bannerUrl;
    }


    public void setItemNum(Integer itemNum) {
        this.itemNum = itemNum;
    }

    public Integer getItemNum() {
        return this.itemNum;
    }


    public void setFrameType(Integer frameType) {
        this.frameType = frameType;
    }

    public Integer getFrameType() {
        return this.frameType;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }
}
